<template>
  <view class="page">
    <jyf-parser :html="html"></jyf-parser>
  </view>
</template>

<script>
	import richText from '@/common/utils/richText.js';
  export default {
    data(){
      return {
        html: '',
      }
    },
    methods: {
      getData(){
        this.$api.post(global.apiUrls.postUserSigninRule,{category_id:20})
        .then(res => {
          console.log(res,"????");
          if(res.data.code == 1){
            this.html = richText.format(res.data.data.content);
            console.log('html',this.html)
          }
        })
        .catch(err => {
          console.log(err,">>>>>>>>>>>>>>>");
        })
      }
    },
    onLoad() {
      this.setNavigationBarTitle(this.i18n['签到规则'])
      this.getData();
    }
  }
</script>

<style scoped lang="scss">
  .page{
    padding: 32rpx;
  }
</style>
